@extends("Admin.Manage.article_manage")

@section("body")
    @section("main")
        <div class="col-sm-10">
            <div class="panel panel-default">
                <div class="panel-body">
                    <form action="/_user_aArticle" method="post">
                        <div class="col-sm-6 form-group">
                            <label>文章名</label>
                            <input class="form-control" placeholder="" name="article_title" type="text">

                        </div>
                        <div class="col-sm-6 form-group">
                            <label>文章简介</label>
                            <input class="form-control" placeholder="" name="article_intro" type="text">
                        </div>
                        <div class="col-sm-12 form-group">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <label>文章分类</label>
                            <select name="article_class" class="form-control" required>
                                @if($data!=null)
                                @foreach($data as $c)
                                    <option value="{{$c->class_id}}">{{$c->class_name}}</option>
                                @endforeach
                                    @else
                                    <option value="">空</option>
                                @endif
                            </select>
                            <input type="submit" class="btn btn-primary" value="提交">

                        </div>
                        <div class="col-sm-12 form-group">
                            <script id="container" name="article_detail" type="text/plain">
                            </script>
                            <!-- 配置文件 -->
                            <script type="text/javascript" src="/ueditor/ueditor.config.js"></script>
                            <!-- 编辑器源码文件 -->
                            <script type="text/javascript" src="/ueditor/ueditor.all.js"></script>
                            <!-- 实例化编辑器 -->
                            <script type="text/javascript">

                                var ue = UE.getEditor('container',{
                                    initialFrameHeight: 600});

                            </script>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    @append
@append